package com.example.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;

@TableName("type")
@Data
public class Type implements Serializable {
    public static final String ID = "id";
    public static final String NAME = "name";
    public static final String DESCRIPTION = "description";
    public static final String TEACHER_ID = "teacher_id";
    public static final String TEACHER_NAME = "teacherName";


    @TableId(value = ID, type = IdType.AUTO)
    private Integer id;

    @TableField(NAME)
    private String name;

    @TableField(DESCRIPTION)
    private String description;

    @TableField(TEACHER_ID)
    private Integer teacherId;

    @TableField(exist = false)
    private String teacherName;
}